package com.yxj.threadcase1;

public class ThreadDemo7 {
    public static void main(String[] args) {
        /*
        * public static void yield() 出让线程/礼让线程*/

        MyThread7 t1 = new MyThread7();
        MyThread7 t2 = new MyThread7();

        t1.setName("女生");
        t2.setName("备胎");

        t1.start();
        t2.start();
    }
}
